package cn.iocoder.yudao.module.vos.controller.admin.pushlistconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 名单推送配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PushListConfigRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "24952")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "租户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19419")
    @ExcelProperty("租户ID")
    private Long rechargeTenantId;

    @Schema(description = "名单等级（如：1/2/3）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "名单等级（如：1/2/3）", converter = DictConvert.class)
    @DictFormat("list_level") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer listLevel;

    @Schema(description = "拉取条数", requiredMode = Schema.RequiredMode.REQUIRED, example = "2687")
    @ExcelProperty("拉取条数")
    private Integer pullCount;

    @Schema(description = "是否启用 1=启用 0=停用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否启用 1=启用 0=停用", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean enabled;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "营销工具", example = "1")
    @ExcelProperty("营销工具")
    private String marketingTools;

}
